#include "namedpipe.hpp"
int main()
{
    // 以使用者的身份打开
    NamedPipe fifo(path, User);
    if (fifo.OpenforWrite())
    {
        std::cout << "Client open fifopipe for write!" << std::endl;
        while (true)
        {
            std::cout << "Please enter message" << std::endl;
            std::string message;
            std::getline(std::cin, message);
            fifo.WriteNamedPipe(message);
        }
    }
    return 0;
}